export default {
  state: {
    isProd: process.env.NODE_ENV === 'production',
    showLoading: false
  },
  mutations: {
    SET_LOADING_STATE: (state, isShow) => {
      state.showLoading = isShow;
    }
  },
  actions: {
    showLoading({ commit }) {
      commit('SET_LOADING_STATE', true);
    },
    hideLoading({ commit }) {
      commit('SET_LOADING_STATE', false);
    }
  }
};
